package com.kamistoat.meimeistore.product.feign;

import com.kamistoat.common.To.SkuReductionTo;
import com.kamistoat.common.To.SpuBoundsTo;
import com.kamistoat.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("meimeistore-web-backstage-coupon")
public interface CouponFeignService {
    /**
     * 远程接口，在saveSPUInfo()中被调用
     *
     * @param spuBoundsTo 跨模通信的传输对象类
     */
    @RequestMapping("meimeistorecoupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    /**
     * 远程接口，在saveSpuInfo()中被调用
     * @param skuReductionTo 跨模通信的传输对象类
     * @return
     */
    @RequestMapping("meimeistorecoupon/skufullreduction/saveSkuReduction")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
